package test.juc.thread.join;

/**
 * @author zhangrui
 * @date 2020-04-24 20:35
 * @since 1.0
 */
public class ThreadJoinDemo {
    public static void main(String[] args) {
        Thread thread2 = new Thread(new Thread2());

        Thread thread1 = new Thread(new Thread1(thread2));

        thread1.start();

        thread2.start();
    }
}
